package com.accompany.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author DC
 * @since 2024-12-26
 */
@Data
@Schema(name = "User对象", description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(name = "nickname", description = "昵称")
    private String nickname;

    @Schema(name = "avatar", description = "头像URL")
    private String avatar;

    @Schema(name = "level", description = "用户等级")
    private Integer level;

    @Schema(name = "userId", description = "用户ID号")
    private String userId;

    @Schema(name = "orderCount", description = "接单数量")
    private Integer orderCount;

    @Schema(name = "rateScore", description = "好评率")
    private BigDecimal rateScore;

    @Schema(name = "fansCount", description = "粉丝数")
    private Integer fansCount;

    @Schema(name = "phone", description = "手机号")
    private String phone;

    @Schema(name = "password", description = "密码")
    private String password;

    @Schema(name = "realName", description = "实名认证姓名")
    private String realName;

    @Schema(name = "idCard", description = "身份证号")
    private String idCard;

    @Schema(name = "status", description = "状态 0:禁用 1:正常")
    private Byte status;

    @Schema(name = "isMaster", description = "是否是大神 0:否 1:是")
    private Byte isMaster;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;
}
